/******************************************************************************
 * @File name   :      ICouponDao.java
 *
 * @Author      :      JIZHANGS
 *
 * @Date        :      Sep 15, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2015 Capgemini, Inc. All  Rights Reserved.
 * This software is published under the terms of the Capgemini Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * Sep 15, 2015 2:27:03 PM        JIZHANGS     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.coupon.dao;

import java.util.List;

import com.cap.bts.crmdp.dealer.coupon.domain.Coupon;
import com.cap.bts.crmdp.dealer.coupon.dto.CouponForMARSDto;
import com.cap.bts.framework.common.dao.IBaseDao;
import com.cap.bts.framework.common.exception.AppException;

/**
 *
 */
public interface ICouponDao extends IBaseDao<Coupon, Long> {
    
    public Coupon getCouponByCouponNumber(String couponNumber) throws AppException;
    
    public Coupon checkCouponExist(String couponNumber) throws AppException;
    
    /**
     * 根据BatchId查找CouponList-用于导出CSV文件
     * @Date        :      Sep 23, 2015
     * @param batchId
     * @return
     * @throws AppException
     */
    public List<Coupon> getCouponListByBatchId(Long batchId,Long ticketId) throws AppException;
    
    
    public List<CouponForMARSDto> getCouponListByCouponNumber(String couponNumber) throws AppException;
    
	Coupon getCouponByCouponNo(String couponNumber) throws AppException;
	
}
